package com.dubbo.provider.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.dubbo.service.DemoApi;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

//dubbo注解，暴露服务
@Service
@Component
public class DemoProviderService implements DemoApi {

    private static final Logger logger = LoggerFactory.getLogger(DemoProviderService.class);


    @Override
    public String sayGoodBye(String str) {

        String backStr = "GoodBye-" + str;

        logger.info("provider export <—— " + backStr);

        return backStr;
    }
}
